<template>
	<view>
		<tm-menubars title="" color="#a9c1ed" :scroll-tobg="10" transparent></tm-menubars>
		<web-view v-if="src != ''" :webview-styles="webviewStyles" :src="src"></web-view>
	</view>
</template>

<script>
	import tmIcons from '@/tm-vuetify/components/tm-icons/tm-icons.vue';
	
	export default {
		name: "webView",
		components: { tmIcons },
		data() {
			return {
				title: '',
				src: '',
				webviewStyles: {
					paddingTop: '5%',
					marginTop: '45px',
					progress: {
						color: '#FF3333'
					}
				}
			}
		},
		onLoad(option) {
			if (option.title) {
				this.title = option.title
			}
			if (option.src) {
				this.src = option.src;
			}
		}
	}
</script>

<style>
	
</style>